package com.lch.spi;


import java.util.ServiceLoader;

/**
 * @author: liuchenhui
 * @create: 2020-02-22 19:50
 **/
@SuppressWarnings("all")
public class Main {
    public static void main(String[] args) {
        ServiceLoader<HelloService> service = ServiceLoader.load(HelloService.class);
        for (HelloService iHelloService : service) {
            iHelloService.sayHello();
        }
    }
}
